//
//@File    :	3.6_morechar.cpp
//@Time    :	2021/08/02 16:06:32
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	the char type and int type contrasted
//

#include <iostream>

int main()
{
    using namespace std;
    char ch = 'M';
    int i = ch;
    cout<<"The ASCII code for "<<ch<<" is"<<endl;

    cout<<"Add one to the charater code:"<<endl;
    ch = ch + 1;
    i = ch;
    cout<<"The ASCII code for "<<ch<<" id "<<i<<endl;

    cout<<"Displaying char ch using cout.put(ch): ";
    cout.put(ch);

    cout.put('l');
    cout<<endl<<"Done"<<endl;
    system("pause");
    return 0;
}